package teacher.clazz.student.serviceImpl;

import java.util.Arrays;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import teacher.clazz.student.dao.CSTdao;
import teacher.clazz.student.entities.Student;
import teacher.clazz.student.service.CSTservice;

@Transactional
@Service
public class CSTserviceImpl implements CSTservice {

	@Autowired
	private CSTdao csTdao;

	@Override
	// 通过老师id来查询学生信息
	public List<Student> teacherId(Integer teacherId) {

		List<Student> students = csTdao.selectByTeacherId(teacherId);

		return students;
	}

	@Override
	// 通过学生id来查询学生信息
	public List<Student> studentId2(Integer studentId) {
		List<Student> students = csTdao.selectByStudentId(studentId);

		return students;
	}

	@Override
	// 通过学生id来删除学生
	public Boolean studentid(Integer studentId) {

		//List<Integer> lIntegers = csTdao.selectId();

		
		
		return true;
	}
}
